from django.urls import path

from user import views

urlpatterns = [
    # 校验用户名是否重复
    path('check/username/<str:username>/', views.CheckUsername.as_view()),
    # 校验手机号是否重复
    path('check/mobile/<str:mobile>/', views.CheckMobile.as_view()),
    # 注册账号
    path('register/', views.UserRegister.as_view()),
    # 生成图片验证码
    path('image_code/<str:uuid>/', views.GenerateImageCode.as_view()),
    # 图片验证码校验
    path('check_image_code/', views.CheckImageCode.as_view()),
    # 登录账号
    path('login/', views.UserLogin.as_view()),
    # 退出登录
    path('logout/', views.Logout.as_view()),
]
